package no.ntnu.fp.storage;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;
import java.util.Properties;

public class TestDBConnection {
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
		/*Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
		
		Connection connection = DriverManager.getConnection("jdbc:derby:supersweetstorageplace");
		
		Statement stmt = connection.createStatement();
		stmt.executeUpdate("INSERT INTO MeetingRoom VALUES('R103', 42)");
		
		stmt.close();
		
		connection.close();*/

		for (Map.Entry<String, String> entry: System.getenv().entrySet()) {
			System.out.println(entry);
		}
		System.err.println("\n\nProperties:\n\n");
		for (Map.Entry<Object, Object> entry: System.getProperties().entrySet()) {
			System.out.println(entry);
		}
	}
}
